﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace S7
{
	/// <summary>
	/// Interaction logic for MusicVotes.xaml
	/// </summary>
	public partial class MusicVotes : Window
	{
		public MusicVotes()
		{
			this.InitializeComponent();
			
			// Insert code required on object creation below this point.
		}

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (Info.MusicVotes != null)
            {
                List<MusicVotesClass> lst = new List<MusicVotesClass>();
                foreach (var item in Info.MusicVotes)
                {
                    MusicVotesClass vote = new MusicVotesClass();
                    vote.Genre = item.Key.GenreName;
                    vote.Votes = item.Value;
                }
            }
        }
	}

    public class MusicVotesClass
    {
        private int _Votes;

        public int Votes
        {
            get { return _Votes; }
            set { _Votes = value; }
        }

        private string _Genre;

        public string Genre
        {
            get { return _Genre; }
            set { _Genre = value; }
        }
    }
}